﻿USE [dbao_db]
GO
/****** Object:  Database [dbao_db]    Script Date: 03/13/2012 19:25:49 ******/
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [dbao_db].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO
ALTER DATABASE [dbao_db] SET ANSI_NULL_DEFAULT OFF
GO
ALTER DATABASE [dbao_db] SET ANSI_NULLS OFF
GO
ALTER DATABASE [dbao_db] SET ANSI_PADDING OFF
GO
ALTER DATABASE [dbao_db] SET ANSI_WARNINGS OFF
GO
ALTER DATABASE [dbao_db] SET ARITHABORT OFF
GO
ALTER DATABASE [dbao_db] SET AUTO_CLOSE OFF
GO
ALTER DATABASE [dbao_db] SET AUTO_CREATE_STATISTICS ON
GO
ALTER DATABASE [dbao_db] SET AUTO_SHRINK OFF
GO
ALTER DATABASE [dbao_db] SET AUTO_UPDATE_STATISTICS ON
GO
ALTER DATABASE [dbao_db] SET CURSOR_CLOSE_ON_COMMIT OFF
GO
ALTER DATABASE [dbao_db] SET CURSOR_DEFAULT  GLOBAL
GO
ALTER DATABASE [dbao_db] SET CONCAT_NULL_YIELDS_NULL OFF
GO
ALTER DATABASE [dbao_db] SET NUMERIC_ROUNDABORT OFF
GO
ALTER DATABASE [dbao_db] SET QUOTED_IDENTIFIER OFF
GO
ALTER DATABASE [dbao_db] SET RECURSIVE_TRIGGERS OFF
GO
ALTER DATABASE [dbao_db] SET  DISABLE_BROKER
GO
ALTER DATABASE [dbao_db] SET AUTO_UPDATE_STATISTICS_ASYNC OFF
GO
ALTER DATABASE [dbao_db] SET DATE_CORRELATION_OPTIMIZATION OFF
GO
ALTER DATABASE [dbao_db] SET TRUSTWORTHY OFF
GO
ALTER DATABASE [dbao_db] SET ALLOW_SNAPSHOT_ISOLATION OFF
GO
ALTER DATABASE [dbao_db] SET PARAMETERIZATION SIMPLE
GO
ALTER DATABASE [dbao_db] SET READ_COMMITTED_SNAPSHOT OFF
GO
ALTER DATABASE [dbao_db] SET  READ_WRITE
GO
ALTER DATABASE [dbao_db] SET RECOVERY FULL
GO
ALTER DATABASE [dbao_db] SET  MULTI_USER
GO
ALTER DATABASE [dbao_db] SET PAGE_VERIFY CHECKSUM
GO
ALTER DATABASE [dbao_db] SET DB_CHAINING OFF
GO
EXEC sys.sp_db_vardecimal_storage_format N'dbao_db', N'ON'
GO
USE [dbao_db]
GO
/****** Object:  Table [dbo].[LoaiPhim]    Script Date: 03/13/2012 19:25:58 ******/
DROP TABLE [dbo].[LoaiPhim]
GO
/****** Object:  Table [dbo].[MSTITEM]    Script Date: 03/13/2012 19:25:57 ******/
DROP TABLE [dbo].[MSTITEM]
GO
/****** Object:  Table [dbo].[MSTITEMNAME]    Script Date: 03/13/2012 19:25:57 ******/
DROP TABLE [dbo].[MSTITEMNAME]
GO
/****** Object:  Table [dbo].[PhanQuyen]    Script Date: 03/13/2012 19:25:57 ******/
DROP TABLE [dbo].[PhanQuyen]
GO
/****** Object:  Table [dbo].[Phim]    Script Date: 03/13/2012 19:25:57 ******/
DROP TABLE [dbo].[Phim]
GO
/****** Object:  Table [dbo].[TaiKhoan]    Script Date: 03/13/2012 19:25:56 ******/
DROP TABLE [dbo].[TaiKhoan]
GO
/****** Object:  Table [dbo].[TaiKhoan]    Script Date: 03/13/2012 19:25:56 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TaiKhoan](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserName] [nchar](20) NOT NULL,
	[Password] [nchar](20) NOT NULL,
	[MS_Quyen] [nchar](10) NOT NULL,
	[NgayDelete] [datetime] NULL,
	[NgayInsert] [datetime] NULL,
	[NguoiInsert] [nchar](10) NULL,
	[NgayUpdate] [datetime] NULL,
	[NguoiUpdate] [nchar](10) NULL,
 CONSTRAINT [PK_TaiKhoan] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET IDENTITY_INSERT [dbo].[TaiKhoan] ON
INSERT [dbo].[TaiKhoan] ([ID], [UserName], [Password], [MS_Quyen], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate]) VALUES (2, N'db                  ', N'123                 ', N'Q0001     ', NULL, NULL, NULL, NULL, NULL)
SET IDENTITY_INSERT [dbo].[TaiKhoan] OFF
/****** Object:  Table [dbo].[Phim]    Script Date: 03/13/2012 19:25:57 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Phim](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[MS_Phim] [nchar](10) NOT NULL,
	[MS_Loai] [nchar](10) NOT NULL,
	[Tua_VN] [nvarchar](150) NOT NULL,
	[Tua_EN] [nvarchar](150) NOT NULL,
	[Dung_Luong] [int] NULL,
	[Hinh_Anh] [nchar](100) NULL,
	[Nam_SX] [int] NULL,
	[Quoc_Gia] [nvarchar](50) NULL,
	[NgayDelete] [datetime] NULL,
	[NgayInsert] [datetime] NULL,
	[NguoiInsert] [nchar](10) NULL,
	[NgayUpdate] [datetime] NULL,
	[NguoiUpdate] [nchar](10) NULL,
	[LoaiHD] [nchar](10) NULL,
 CONSTRAINT [PK_Phim] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET IDENTITY_INSERT [dbo].[Phim] ON
INSERT [dbo].[Phim] ([ID], [MS_Phim], [MS_Loai], [Tua_VN], [Tua_EN], [Dung_Luong], [Hinh_Anh], [Nam_SX], [Quoc_Gia], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate], [LoaiHD]) VALUES (32, N'PH00032   ', N'LP00012   ', N'sdf', N'dfs', 123, N'RobotDaiChien                                                                                       ', 2012, N'Mỹ', NULL, CAST(0x0000A00F00000000 AS DateTime), N'db        ', CAST(0x0000A00F00000000 AS DateTime), N'db        ', N'HD720     ')
INSERT [dbo].[Phim] ([ID], [MS_Phim], [MS_Loai], [Tua_VN], [Tua_EN], [Dung_Luong], [Hinh_Anh], [Nam_SX], [Quoc_Gia], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate], [LoaiHD]) VALUES (33, N'PH00033   ', N'LP00012   ', N'd', N'd', 132, N'G-Force-2009 - biet doi chuot lang                                                                  ', 2012, N'Mỹ', NULL, CAST(0x0000A00F00000000 AS DateTime), N'db        ', CAST(0x0000A00F00000000 AS DateTime), N'db        ', N'HD720     ')
INSERT [dbo].[Phim] ([ID], [MS_Phim], [MS_Loai], [Tua_VN], [Tua_EN], [Dung_Luong], [Hinh_Anh], [Nam_SX], [Quoc_Gia], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate], [LoaiHD]) VALUES (34, N'PH00034   ', N'LP00012   ', N'a1', N'a1', 123, N'RobotDaiChien                                                                                       ', 2011, N'Hàn Quốc', NULL, CAST(0x0000A01000000000 AS DateTime), N'db        ', CAST(0x0000A01000000000 AS DateTime), N'db        ', N'HD720     ')
INSERT [dbo].[Phim] ([ID], [MS_Phim], [MS_Loai], [Tua_VN], [Tua_EN], [Dung_Luong], [Hinh_Anh], [Nam_SX], [Quoc_Gia], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate], [LoaiHD]) VALUES (35, N'PH00035   ', N'LP00013   ', N'a2', N'a2', 12313123, N'G-Force-2009 - biet doi chuot lang                                                                  ', 2011, N'Hàn Quốc', NULL, CAST(0x0000A01000000000 AS DateTime), N'db        ', CAST(0x0000A01000000000 AS DateTime), N'db        ', N'HD720     ')
INSERT [dbo].[Phim] ([ID], [MS_Phim], [MS_Loai], [Tua_VN], [Tua_EN], [Dung_Luong], [Hinh_Anh], [Nam_SX], [Quoc_Gia], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate], [LoaiHD]) VALUES (38, N'PH00036   ', N'LP00012   ', N'a1', N'a2', 123, N'RobotDaiChien                                                                                       ', 2012, N'Mỹ', NULL, CAST(0x0000A01100000000 AS DateTime), N'db        ', CAST(0x0000A01100000000 AS DateTime), N'db        ', N'HD720     ')
INSERT [dbo].[Phim] ([ID], [MS_Phim], [MS_Loai], [Tua_VN], [Tua_EN], [Dung_Luong], [Hinh_Anh], [Nam_SX], [Quoc_Gia], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate], [LoaiHD]) VALUES (39, N'PH00039   ', N'LP00012   ', N's3', N's3', 123, N'G-Force-2009 - biet doi chuot lang                                                                  ', 2012, N'Mỹ', NULL, CAST(0x0000A01100000000 AS DateTime), N'db        ', CAST(0x0000A01100000000 AS DateTime), N'db        ', N'HD720     ')
INSERT [dbo].[Phim] ([ID], [MS_Phim], [MS_Loai], [Tua_VN], [Tua_EN], [Dung_Luong], [Hinh_Anh], [Nam_SX], [Quoc_Gia], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate], [LoaiHD]) VALUES (40, N'PH00032   ', N'LP00012   ', N'sdf', N'dfs', 123, N'RobotDaiChien                                                                                       ', 2012, N'Mỹ', NULL, CAST(0x0000A00F00000000 AS DateTime), N'db        ', CAST(0x0000A00F00000000 AS DateTime), N'db        ', N'HD720     ')
INSERT [dbo].[Phim] ([ID], [MS_Phim], [MS_Loai], [Tua_VN], [Tua_EN], [Dung_Luong], [Hinh_Anh], [Nam_SX], [Quoc_Gia], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate], [LoaiHD]) VALUES (41, N'PH00033   ', N'LP00012   ', N'd', N'd', 132, N'G-Force-2009 - biet doi chuot lang                                                                  ', 2012, N'Mỹ', NULL, CAST(0x0000A00F00000000 AS DateTime), N'db        ', CAST(0x0000A00F00000000 AS DateTime), N'db        ', N'HD720     ')
INSERT [dbo].[Phim] ([ID], [MS_Phim], [MS_Loai], [Tua_VN], [Tua_EN], [Dung_Luong], [Hinh_Anh], [Nam_SX], [Quoc_Gia], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate], [LoaiHD]) VALUES (42, N'PH00034   ', N'LP00012   ', N'a1', N'a1', 123, N'RobotDaiChien                                                                                       ', 2011, N'Hàn Quốc', NULL, CAST(0x0000A01000000000 AS DateTime), N'db        ', CAST(0x0000A01000000000 AS DateTime), N'db        ', N'HD720     ')
INSERT [dbo].[Phim] ([ID], [MS_Phim], [MS_Loai], [Tua_VN], [Tua_EN], [Dung_Luong], [Hinh_Anh], [Nam_SX], [Quoc_Gia], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate], [LoaiHD]) VALUES (43, N'PH00035   ', N'LP00013   ', N'a2', N'a2', 12313123, N'Sieu khuyen than thong                                                                              ', 2011, N'Hàn Quốc', NULL, CAST(0x0000A01000000000 AS DateTime), N'db        ', CAST(0x0000A01000000000 AS DateTime), N'db        ', N'HD720     ')
INSERT [dbo].[Phim] ([ID], [MS_Phim], [MS_Loai], [Tua_VN], [Tua_EN], [Dung_Luong], [Hinh_Anh], [Nam_SX], [Quoc_Gia], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate], [LoaiHD]) VALUES (44, N'PH00032   ', N'LP00012   ', N'sdf', N'dfs', 123, N'dao-khung-bo-the-inhabited-island-2008                                                              ', 2012, N'Mỹ', NULL, CAST(0x0000A00F00000000 AS DateTime), N'db        ', CAST(0x0000A00F00000000 AS DateTime), N'db        ', N'HD720     ')
INSERT [dbo].[Phim] ([ID], [MS_Phim], [MS_Loai], [Tua_VN], [Tua_EN], [Dung_Luong], [Hinh_Anh], [Nam_SX], [Quoc_Gia], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate], [LoaiHD]) VALUES (45, N'PH00033   ', N'LP00012   ', N'd', N'd', 132, N'Sieu khuyen than thong                                                                              ', 2012, N'Mỹ', NULL, CAST(0x0000A00F00000000 AS DateTime), N'db        ', CAST(0x0000A00F00000000 AS DateTime), N'db        ', N'HD720     ')
INSERT [dbo].[Phim] ([ID], [MS_Phim], [MS_Loai], [Tua_VN], [Tua_EN], [Dung_Luong], [Hinh_Anh], [Nam_SX], [Quoc_Gia], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate], [LoaiHD]) VALUES (46, N'PH00034   ', N'LP00012   ', N'a1', N'a1', 123, N'dao-khung-bo-the-inhabited-island-2008                                                              ', 2011, N'Hàn Quốc', NULL, CAST(0x0000A01000000000 AS DateTime), N'db        ', CAST(0x0000A01000000000 AS DateTime), N'db        ', N'HD720     ')
INSERT [dbo].[Phim] ([ID], [MS_Phim], [MS_Loai], [Tua_VN], [Tua_EN], [Dung_Luong], [Hinh_Anh], [Nam_SX], [Quoc_Gia], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate], [LoaiHD]) VALUES (47, N'PH00035   ', N'LP00013   ', N'a2', N'a2', 12313123, N'Sieu khuyen than thong                                                                              ', 2011, N'Hàn Quốc', NULL, CAST(0x0000A01000000000 AS DateTime), N'db        ', CAST(0x0000A01000000000 AS DateTime), N'db        ', N'HD720     ')
INSERT [dbo].[Phim] ([ID], [MS_Phim], [MS_Loai], [Tua_VN], [Tua_EN], [Dung_Luong], [Hinh_Anh], [Nam_SX], [Quoc_Gia], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate], [LoaiHD]) VALUES (48, N'PH00036   ', N'LP00012   ', N'a1', N'a2', 123, N'dao-khung-bo-the-inhabited-island-2008                                                              ', 2012, N'Mỹ', NULL, CAST(0x0000A01100000000 AS DateTime), N'db        ', CAST(0x0000A01100000000 AS DateTime), N'db        ', N'HD720     ')
INSERT [dbo].[Phim] ([ID], [MS_Phim], [MS_Loai], [Tua_VN], [Tua_EN], [Dung_Luong], [Hinh_Anh], [Nam_SX], [Quoc_Gia], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate], [LoaiHD]) VALUES (49, N'PH00039   ', N'LP00012   ', N's3', N's3', 123, N'Sieu khuyen than thong                                                                              ', 2012, N'Mỹ', NULL, CAST(0x0000A01100000000 AS DateTime), N'db        ', CAST(0x0000A01100000000 AS DateTime), N'db        ', N'HD720     ')
INSERT [dbo].[Phim] ([ID], [MS_Phim], [MS_Loai], [Tua_VN], [Tua_EN], [Dung_Luong], [Hinh_Anh], [Nam_SX], [Quoc_Gia], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate], [LoaiHD]) VALUES (50, N'PH00032   ', N'LP00012   ', N'sdf', N'dfs', 123, N'dao-khung-bo-the-inhabited-island-2008                                                              ', 2012, N'Mỹ', NULL, CAST(0x0000A00F00000000 AS DateTime), N'db        ', CAST(0x0000A00F00000000 AS DateTime), N'db        ', N'HD720     ')
INSERT [dbo].[Phim] ([ID], [MS_Phim], [MS_Loai], [Tua_VN], [Tua_EN], [Dung_Luong], [Hinh_Anh], [Nam_SX], [Quoc_Gia], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate], [LoaiHD]) VALUES (51, N'PH00033   ', N'LP00012   ', N'd', N'd', 132, N'Sieu khuyen than thong                                                                              ', 2012, N'Mỹ', NULL, CAST(0x0000A00F00000000 AS DateTime), N'db        ', CAST(0x0000A00F00000000 AS DateTime), N'db        ', N'HD720     ')
INSERT [dbo].[Phim] ([ID], [MS_Phim], [MS_Loai], [Tua_VN], [Tua_EN], [Dung_Luong], [Hinh_Anh], [Nam_SX], [Quoc_Gia], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate], [LoaiHD]) VALUES (52, N'PH00034   ', N'LP00012   ', N'a1', N'a1', 123, N'dao-khung-bo-the-inhabited-island-2008                                                              ', 2011, N'Hàn Quốc', NULL, CAST(0x0000A01000000000 AS DateTime), N'db        ', CAST(0x0000A01000000000 AS DateTime), N'db        ', N'HD720     ')
INSERT [dbo].[Phim] ([ID], [MS_Phim], [MS_Loai], [Tua_VN], [Tua_EN], [Dung_Luong], [Hinh_Anh], [Nam_SX], [Quoc_Gia], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate], [LoaiHD]) VALUES (53, N'PH00035   ', N'LP00013   ', N'a2', N'a2', 12313123, N'Sieu khuyen than thong                                                                              ', 2011, N'Hàn Quốc', NULL, CAST(0x0000A01000000000 AS DateTime), N'db        ', CAST(0x0000A01000000000 AS DateTime), N'db        ', N'HD720     ')
SET IDENTITY_INSERT [dbo].[Phim] OFF
/****** Object:  Table [dbo].[PhanQuyen]    Script Date: 03/13/2012 19:25:57 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[PhanQuyen](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[MS_Quyen] [nchar](10) NOT NULL,
	[Loai_Quyen] [int] NOT NULL,
	[Mo_Ta] [nvarchar](150) NULL,
	[NgayDelete] [datetime] NULL,
	[NgayInsert] [datetime] NULL,
	[NguoiInsert] [nchar](10) NULL,
	[NgayUpdate] [datetime] NULL,
	[NguoiUpdate] [nchar](10) NULL,
 CONSTRAINT [PK_PhanQuyen] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY],
 CONSTRAINT [IX_PhanQuyen] UNIQUE NONCLUSTERED 
(
	[MS_Quyen] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET IDENTITY_INSERT [dbo].[PhanQuyen] ON
INSERT [dbo].[PhanQuyen] ([ID], [MS_Quyen], [Loai_Quyen], [Mo_Ta], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate]) VALUES (1, N'Q0001     ', 1, N'admin', NULL, NULL, NULL, NULL, NULL)
SET IDENTITY_INSERT [dbo].[PhanQuyen] OFF
/****** Object:  Table [dbo].[MSTITEMNAME]    Script Date: 03/13/2012 19:25:57 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[MSTITEMNAME](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Item_ID] [int] NULL,
	[Item_Value] [nvarchar](250) NULL,
	[Item_Name] [nvarchar](250) NULL,
	[NgayDelete] [datetime] NULL,
	[NgayInsert] [datetime] NULL,
	[NguoiInsert] [nchar](10) NULL,
	[NgayUpdate] [datetime] NULL,
	[NguoiUpdate] [nchar](10) NULL,
 CONSTRAINT [PK_MSTITEMNAME] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET IDENTITY_INSERT [dbo].[MSTITEMNAME] ON
INSERT [dbo].[MSTITEMNAME] ([ID], [Item_ID], [Item_Value], [Item_Name], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate]) VALUES (1, 1, N'1', N'HD720', NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[MSTITEMNAME] ([ID], [Item_ID], [Item_Value], [Item_Name], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate]) VALUES (2, 1, N'2', N'HD1024', NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[MSTITEMNAME] ([ID], [Item_ID], [Item_Value], [Item_Name], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate]) VALUES (3, 2, N'1', N'2012', NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[MSTITEMNAME] ([ID], [Item_ID], [Item_Value], [Item_Name], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate]) VALUES (4, 2, N'2', N'2011', NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[MSTITEMNAME] ([ID], [Item_ID], [Item_Value], [Item_Name], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate]) VALUES (5, 2, N'3', N'2010', NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[MSTITEMNAME] ([ID], [Item_ID], [Item_Value], [Item_Name], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate]) VALUES (6, 2, N'4', N'2009', NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[MSTITEMNAME] ([ID], [Item_ID], [Item_Value], [Item_Name], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate]) VALUES (7, 2, N'5', N'2008', NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[MSTITEMNAME] ([ID], [Item_ID], [Item_Value], [Item_Name], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate]) VALUES (8, 3, N'1', N'Mỹ', NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[MSTITEMNAME] ([ID], [Item_ID], [Item_Value], [Item_Name], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate]) VALUES (9, 3, N'2', N'Hàn Quốc', NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[MSTITEMNAME] ([ID], [Item_ID], [Item_Value], [Item_Name], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate]) VALUES (10, 3, N'3', N'Nhật Bản', NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[MSTITEMNAME] ([ID], [Item_ID], [Item_Value], [Item_Name], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate]) VALUES (11, 3, N'4', N'Việt Nam', NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[MSTITEMNAME] ([ID], [Item_ID], [Item_Value], [Item_Name], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate]) VALUES (12, 3, N'5', N'Thái Lan', NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[MSTITEMNAME] ([ID], [Item_ID], [Item_Value], [Item_Name], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate]) VALUES (13, 3, N'6', N'Trung Quốc', NULL, NULL, NULL, NULL, NULL)
SET IDENTITY_INSERT [dbo].[MSTITEMNAME] OFF
/****** Object:  Table [dbo].[MSTITEM]    Script Date: 03/13/2012 19:25:57 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[MSTITEM](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Ten_Item] [nchar](30) NOT NULL,
	[Mo_Ta] [nvarchar](150) NULL,
	[NgayDelete] [datetime] NULL,
	[NgayInsert] [datetime] NULL,
	[NguoiInsert] [nchar](10) NULL,
	[NgayUpdate] [datetime] NULL,
	[NguoiUpdate] [nchar](10) NULL,
 CONSTRAINT [PK_MSTITEM] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY],
 CONSTRAINT [IX_MSTITEM] UNIQUE NONCLUSTERED 
(
	[Ten_Item] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET IDENTITY_INSERT [dbo].[MSTITEM] ON
INSERT [dbo].[MSTITEM] ([ID], [Ten_Item], [Mo_Ta], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate]) VALUES (1, N'LOAI_HD                       ', N'Loại HD', NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[MSTITEM] ([ID], [Ten_Item], [Mo_Ta], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate]) VALUES (2, N'NAM_SX                        ', N'Năm sản xuất', NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[MSTITEM] ([ID], [Ten_Item], [Mo_Ta], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate]) VALUES (3, N'QUOC_GIA                      ', N'Quốc gia sản xuất', NULL, NULL, NULL, NULL, NULL)
SET IDENTITY_INSERT [dbo].[MSTITEM] OFF
/****** Object:  Table [dbo].[LoaiPhim]    Script Date: 03/13/2012 19:25:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[LoaiPhim](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[MS_Loai] [nchar](10) NOT NULL,
	[Ten_Loai] [nvarchar](150) NOT NULL,
	[Mo_Ta] [nvarchar](150) NULL,
	[NgayDelete] [datetime] NULL,
	[NgayInsert] [datetime] NULL,
	[NguoiInsert] [nchar](10) NULL,
	[NgayUpdate] [datetime] NULL,
	[NguoiUpdate] [nchar](10) NULL,
 CONSTRAINT [PK_LoaiPhim] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY],
 CONSTRAINT [IX_LoaiPhim] UNIQUE NONCLUSTERED 
(
	[MS_Loai] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET IDENTITY_INSERT [dbo].[LoaiPhim] ON
INSERT [dbo].[LoaiPhim] ([ID], [MS_Loai], [Ten_Loai], [Mo_Ta], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate]) VALUES (13, N'LP00012   ', N'Phim Chiếu Rạp', N'Phim Chiếu Rạp', NULL, CAST(0x0000A00E00000000 AS DateTime), N'db        ', CAST(0x0000A00E00000000 AS DateTime), N'db        ')
INSERT [dbo].[LoaiPhim] ([ID], [MS_Loai], [Ten_Loai], [Mo_Ta], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate]) VALUES (14, N'LP00013   ', N'Phim Lẻ', N'Phim Lẻ', NULL, CAST(0x0000A00E00000000 AS DateTime), N'db        ', CAST(0x0000A00E00000000 AS DateTime), N'db        ')
INSERT [dbo].[LoaiPhim] ([ID], [MS_Loai], [Ten_Loai], [Mo_Ta], [NgayDelete], [NgayInsert], [NguoiInsert], [NgayUpdate], [NguoiUpdate]) VALUES (15, N'LP00014   ', N'Phim Bộ', N'Phim Bộ', NULL, CAST(0x0000A00E00000000 AS DateTime), N'db        ', CAST(0x0000A00E00000000 AS DateTime), N'db        ')
SET IDENTITY_INSERT [dbo].[LoaiPhim] OFF
